<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .wrapper{
            width:100%;
            height:100px;
            display:-webkit-box;
            -webkit-box-orient:horizontal;
            -webkit-box-pack:justify;
             background:#000;
        }
        .wrapper div{
            width:50px;
            height:100px;
            background:red;
            border:solid 1px green;
        }
        .wrapper .container{
            -webkit-box-flex:1;
            display:-webkit-box;
            -webkit-box-pack:center;
            -webkit-box-align:center;
        }
        .sub{
            display:block;
            width:50px;
            height:30px;
            background: rgb(17, 23, 166);
            border-right:solid 1px #fff;
            color:#fff;
        }
        .container span:nth-of-type(1){
            -webkit-box-ordinal-group:2;
        }
        .container span:nth-of-type(2){
            -webkit-box-ordinal-group:1;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div></div>
        <div class="container">
            <span class="sub">1</span>
            <span class="sub">2</span>
        </div>
        <div></div>
    </div>
</body>
</html>
